<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>志愿者爱心登录</title>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary: #ff6b6b;
            --secondary: #ff8e8e;
            --light: #fff4f4;
            --dark: #4a4a4a;
            --shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Nunito', sans-serif;
        }

        body {

            background-size: cover;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.7);
            z-index: 0;
        }

        .login-container {
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow);
            width: 420px;
            padding: 40px 50px;
            text-align: center;
            position: relative;
            z-index: 1;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .login-container:hover {
            transform: translateY(-5px);
        }

        .heart-decoration {
            position: absolute;
            color: rgba(255, 107, 107, 0.1);
            font-size: 120px;
            z-index: -1;
        }

        .heart-1 {
            top: -30px;
            left: -30px;
        }

        .heart-2 {
            bottom: -40px;
            right: -30px;
        }

        .logo {
            margin-bottom: 25px;
        }

        .logo i {
            font-size: 50px;
            color: var(--primary);
            background: var(--light);
            width: 90px;
            height: 90px;
            line-height: 90px;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
        }

        h2 {
            color: var(--primary);
            margin-bottom: 10px;
            font-weight: 700;
            font-size: 28px;
        }

        .subtitle {
            color: var(--dark);
            margin-bottom: 30px;
            font-size: 14px;
            opacity: 0.8;
        }

        .form-group {
            margin-bottom: 20px;
            text-align: left;
            position: relative;
        }

        .form-group i {
            position: absolute;
            left: 15px;
            top: 42px;
            color: var(--primary);
            font-size: 16px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark);
            font-weight: 600;
            font-size: 14px;
        }

        input {
            width: 100%;
            padding: 12px 15px 12px 40px;
            border: 2px solid #f0f0f0;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s;
            background: #fafafa;
        }

        input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
            outline: none;
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            border: none;
            padding: 14px;
            width: 100%;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 15px;
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .btn-login:hover::after {
            transform: translateX(0);
        }

        .footer {
            margin-top: 25px;
            color: var(--dark);
            font-size: 13px;
            opacity: 0.8;
        }

        .footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
        }

        .footer a:hover {
            text-decoration: underline;
            opacity: 0.9;
        }


    </style>
</head>
<body>
<div class="login-container">
    <i class="fas fa-heart heart-decoration heart-1"></i>
    <i class="fas fa-heart heart-decoration heart-2"></i>

    <div class="logo">
        <i class="fas fa-hands-helping"></i>
    </div>

    <h2>志愿者登录</h2>
    <p class="subtitle">用爱心传递温暖，用行动改变世界</p>

    <form action="<c:url value="/users/login"/>" method="post">
        <div class="form-group">
            <label for="usernumber">账号</label>
            <i class="fas fa-user"></i>
            <input type="text" id="usernumber" name="usernumber" placeholder="请输入您的账号">
        </div>

        <div class="form-group">
            <label for="password">密码</label>
            <i class="fas fa-lock"></i>
            <input type="password" id="password" name="password" placeholder="请输入您的密码">
        </div>

        <button type="submit" class="btn-login">
            <i class="fas fa-sign-in-alt"></i> 立即登录
        </button>
    </form>



    <div class="footer">
        新志愿者？<a href="/volunteer/register.jsp">注册账号</a>
    </div>
</div>
</body>
</html>